package com.aiassistant.model;

/**
 * AI模型服务，表示一个可配置的AI服务提供商
 */
public class AIModelService {
    private String id;
    private String name;
    private boolean enabled;
    private String iconPath;
    private String apiUrl;
    private String apiKey;
    
    /**
     * 构造函数
     */
    public AIModelService(String id, String name, boolean enabled) {
        this.id = id;
        this.name = name;
        this.enabled = enabled;
        this.iconPath = "/com/aiassistant/images/services/" + id + ".png";
        this.apiUrl = "";
        this.apiKey = "";
    }
    
    /**
     * 构造函数
     */
    public AIModelService(String id, String name, boolean enabled, String apiUrl, String apiKey) {
        this(id, name, enabled);
        this.apiUrl = apiUrl;
        this.apiKey = apiKey;
    }

    // Getter和Setter方法
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getIconPath() {
        return iconPath;
    }

    public void setIconPath(String iconPath) {
        this.iconPath = iconPath;
    }

    public String getApiUrl() {
        return apiUrl;
    }

    public void setApiUrl(String apiUrl) {
        this.apiUrl = apiUrl;
    }

    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }
    
    @Override
    public String toString() {
        return name;
    }
} 